import grails.util.Environment

class BootStrap {

    def init = { servletContext ->

        switch (Environment.current) {
            case Environment.DEVELOPMENT:
                System.out = new  PrintStream(System.out, true, "gbk") 

//                initData()

            break
            case Environment.PRODUCTION:
                System.out = new  PrintStream(System.out, true, "utf-8") 
            break
        }
    }

    def destroy = {
    }
}
